[LINUX] Fix seg-fixup warning.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Thu, 14 Dec 2006 11:09:27 +0000 (11:09 +0000)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Thu, 14 Dec 2006 11:09:27 +0000 (11:09 +0000)
Signed-off-by: Keir Fraser <keir@xensource.com>
linux-2.6-xen-sparse/arch/i386/kernel/fixup.c

index 2bf16fb732e7e0ada8b4415c8412a01740f42ede..f7e6feedee89c06128ebe82a6ad0526f730d5470 100644 (file)
@@ -43,17 +43,17 @@ fastcall void do_fixup_4gb_segment(struct pt_regs *regs, long error_code)
        char info[100];
        int i;
 
-       if (test_and_set_bit(0, &printed))
+       /* Ignore statically-linked init. */
+       if (current->tgid == 1)
                return;
-
-        if (current->tgid == 1) /* Ignore statically linked init */
-                return; 
             
        HYPERVISOR_vm_assist(
                VMASST_CMD_disable, VMASST_TYPE_4gb_segments_notify);
 
-       sprintf(info, "%s (pid=%d)", current->comm, current->tgid);
+       if (test_and_set_bit(0, &printed))
+               return;
 
+       sprintf(info, "%s (pid=%d)", current->comm, current->tgid);
 
        DP("");
        DP("***************************************************************");